﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/PageTemplate.Master" AutoEventWireup="true"
    Codebehind="KBCollect.aspx.cs" Inherits="FrameWork.web.Module.ITMS.KnowledgeBase.KBCollect.KBCollect"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <script language="javascript">
            function sMove()
            {
               var result=window.showModalDialog("KBGetType.aspx?rnd="+Math.random(),'', "dialogHeight=215px;dialogWidth=255px;help=no")
	            if (result!=undefined)
	            {
	                var resultValue=result.split(',');
	                var kId=resultValue[0];
	                var kName=resultValue[1];
	                document.getElementById('<%= txtKID.ClientID%>').value=kId;
	                document.getElementById('<%= txtK_Name.ClientID%>').value=kName;
	              
	            }
            }
    </script>
    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="归纳知识库" HeadTitleTxt="知识库归纳">
    </FrameWorkWebControls:HeadMenuWebControls>
    <FrameWorkWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="服务单">
    <asp:GridView ID="GVUnsolve" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:TemplateField SortExpression="UID" Visible="False">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("UID") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="labUID" runat="server" Text='<%# Bind("UID") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="服务单号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ServDocNo") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="lbtUnsolve" runat="server" OnClick="lbtUnsolve_Click" Text='<%# Bind("ServDocNo") %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="RepUserNO" HeaderText="报修人工号" />
            <asp:BoundField DataField="RepUserName" HeaderText="报修人姓名" />
            <asp:BoundField DataField="RepTitle" HeaderText="报修标题" />
            <asp:BoundField DataField="DocDat" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderText="报修时间" />
            <asp:BoundField DataField="done" HeaderText="是否归纳" />
        </Columns>
    </asp:GridView>
    <FrameWorkWebControls:AspNetPager ID="PagerSolve" runat="server" OnPageChanged="PagerSolve_PageChanged">
    </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="服务单查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body" style="width: 8%; height: 46px;">
                        是否归纳</td>
                    <td class="table_none" colspan="3" style="height: 46px">
                        <asp:RadioButtonList ID="rbListCollec" runat="server" RepeatDirection="Horizontal"
                            Width="171px">
                            <asp:ListItem Value="-1">全部</asp:ListItem>
                            <asp:ListItem Value="1">已归纳</asp:ListItem>
                            <asp:ListItem Value="0">未归纳</asp:ListItem>
                        </asp:RadioButtonList></td>
                    <td class="table_none" colspan="2" style="height: 46px">
                    </td>
                </tr>
                <tr>
                    <td class="table_body" style="height: 30px; width: 8%;">
                        故障分类</td>
                    <td class="table_none" colspan="3" style="height: 30px">
                        <asp:DropDownList ID="drpServTrobType" runat="server" Width="178px">
                        </asp:DropDownList></td>
                    <td class="table_none" colspan="2" style="height: 30px">
                    </td>
                </tr>
                <tr>
                    <td class="table_body" style="height: 30px; width: 8%;">
                        问题分类</td>
                    <td class="table_none" colspan="3" style="height: 30px">
                        <asp:DropDownList ID="drpServProbType" runat="server" Width="178px">
                        </asp:DropDownList></td>
                    <td class="table_none" colspan="2" style="height: 30px">
                    </td>
                </tr>
                <tr>
                    <td class="table_body" style="height: 30px; width: 8%;">
                        服务单号</td>
                    <td class="table_none" colspan="3" style="height: 30px">
                        <asp:TextBox ID="txtDocNo" runat="server" CssClass="text_input" Width="178px"></asp:TextBox>&nbsp;
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" OnClick="Button1_Click"
                            Text="确定" />&nbsp;
                        <input id="Reset2" class="button_bak" type="reset" value="重填" />
                        <asp:Label ID="lblCollec" runat="server" Visible="False"></asp:Label>
                        <asp:Label ID="lblServTrobType" runat="server" Visible="False"></asp:Label>
                        <asp:Label ID="lblServProbType" runat="server" Visible="False"></asp:Label>
                        <asp:Label ID="lblDocNo" runat="server" Visible="False"></asp:Label></td>
                    <td class="table_none" colspan="2" style="height: 30px">
                    </td>
                </tr>
                
            </table>
        </FrameWorkWebControls:TabOptionItem>
    </FrameWorkWebControls:TabOptionWebControls>
    &nbsp;
    <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="X-Small" Text="详细信息"></asp:Label></td>
            <td style="height: 25px; width: 10%;">
            </td>
            <td style="height: 25px; width: 8%;">
            </td>
            <td style="height: 25px; width: 10%;">
            </td>
            <td style="height: 25px; width: 8%;">
            </td>
            <td style="height: 25px; width: 10%;">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                服务单号</td>
            <td class="table_none" colspan="3">
                <asp:TextBox CssClass="text_input" ID="TxtServerDocNo" runat="server" Width="100%" ReadOnly="True"></asp:TextBox></td>
            <td class="table_none" colspan="2">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                报修标题</td>
            <td class="table_none" colspan="3">
                <asp:TextBox CssClass="text_input" ID="TxtRepTitle" runat="server" Width="100%" ReadOnly="True"></asp:TextBox></td>
            <td class="table_none" colspan="2">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 99px; width: 8%;">
                具体内容</td>
            <td colspan="3" class="table_none" style="height: 99px;">
                <asp:TextBox ID="TxtRepContext" runat="server" CssClass="text_input" Width="100%"
                    Height="80px" TextMode="MultiLine" ReadOnly="True"></asp:TextBox></td>
            <td class="table_none" colspan="2" style="height: 99px">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 125px; width: 8%;">
                解决情况</td>
            <td colspan="3" class="table_none" style="height: 125px">
                <asp:TextBox ID="TxtSolution" runat="server" CssClass="text_input" Width="100%" Height="130px"
                    TextMode="MultiLine" ReadOnly="True"></asp:TextBox></td>
            <td class="table_none" colspan="2">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="X-Small" Text="服务单归纳"></asp:Label></td>
            <td style="height: 25px; width: 10%;">
            </td>
            <td style="height: 25px; width: 8%;">
            </td>
            <td style="height: 25px; width: 10%;">
            </td>
            <td style="height: 25px; width: 8%;">
            </td>
            <td style="height: 25px; width: 10%;">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                知识库类别</td>
            <td class="table_none" colspan="3">
                <asp:TextBox ID="txtK_Name" runat="server" CssClass="text_input" 
                    Width="400px" ReadOnly="True"></asp:TextBox>
                <input id="Button3" type="button" value="选择" onclick="sMove()"/>
                <asp:TextBox ID="txtKID" runat="server" CssClass="text_input" ReadOnly="True" Style="position: relative;display:none"
                    title="请输入主题~200:" Width="201px"></asp:TextBox></td>
            <td class="table_none" colspan="2">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 25px; width: 8%;">
                主题</td>
            <td class="table_none" colspan="3">
                <asp:TextBox ID="txtSubject" runat="server" CssClass="text_input" title="请输入主题~200:"
                    Width="400px"></asp:TextBox></td>
            <td class="table_none" colspan="2">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 99px; width: 8%;">
                内容简述</td>
            <td colspan="3" class="table_none" style="height: 99px;">
                <asp:TextBox ID="txtContent" runat="server" CssClass="text_input" Height="194px"
                    TextMode="MultiLine" Width="607px"></asp:TextBox></td>
            <td class="table_none" colspan="2" style="height: 99px">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 20px; width: 8%;">
                关键字</td>
            <td colspan="3" class="table_none" style="height: 20px">
                <asp:TextBox ID="txtKeyWord" runat="server" CssClass="text_input" title="不同关键字之间请用空格隔开"
                    Width="400px"></asp:TextBox></td>
            <td class="table_none" colspan="2" style="height: 20px">
            </td>
        </tr>
        <tr>
            <td class="table_body" style="height: 20px; width: 8%;">
                附件</td>
            <td colspan="3" class="table_none" style="height: 20px">
                <asp:TextBox ID="txtAttachment" runat="server" CssClass="text_input" title="请输入附件~255:"
                    Width="400px" ReadOnly="True"></asp:TextBox></td>
            <td class="table_none" colspan="2" style="height: 20px">
            </td>
        </tr>
        <tr id="ButtonOption" runat="server">
            <td align="right" colspan="6" style="height: 26px">
                &nbsp;<asp:Button ID="Button2" runat="server" CssClass="button_bak" Text="确定" OnClick="Button2_Click" />&nbsp;
                &nbsp;<input id="Reset1" class="button_bak" type="reset" value="重填" />
            </td>
        </tr>
    </table>
</asp:Content>
